$(function() {
	$( "#slider" ).slider();
	
	$('#song_list').modal({backdrop: true});
	$(".page").click(function(){
		$(".song_queue").hide({width: 'toggle'});	
	});
	
	$(".queue_tip").hover(function(){
		$(".song_queue").show({width: 'toggle'});	
	});
	
	$("#song_list tr td").live("click", function(){
		var data = $(this).attr("data-id");
		var name = $(this).text();
		
		var html="<tr><td data-id=" + data + ">" + name + "</td></tr>";
		$("#player").html("");

		$(".playlist").append(html);	

		
	
	
	});
	
	$(".playlist tr td").live("click", function(){
		var data = $(this).attr("data-id");
		swfobject.embedSWF("http://www.youtube.com/v/" + data + "?enablejsapi=1&playerapiid=ytplayer&version=3",
                       "player", "300", "225", "8", null, null, params, atts);
		changeState();
	
	
	});
	
	
	
	function changeState() {
		
	}
	

	
	

});



